home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
UUPC11QS.ARJ
/
TESTSEC.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-06-27
|
1KB
|
48 lines
/*--------------------------------------------------------------------*/
/* t e s t s e c . c */
/* */
/* Test permissions file for UUPC/extended */
/* */
/* Copyright (c) 1991, Andrew H. Derbyshire */
/*--------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "lib.h"
#include "expath.h"
#include "hlib.h"
#include "hostable.h"
#include "usertabl.h"
#include "security.h"
currentfile();
extern struct HostTable *hostp = NULL;
extern struct UserTable *userp = NULL;
void main( int argc, char **argv)
{
configure( B_UUIO );
checkuser( homedir );
checkreal( nodename );
debuglevel = 10;
if (!LoadSecurity())
panic();
hostp = checkreal( *(++argv) );
securep = GetSecurity( hostp );
while( --argc > 1 )
{
char path[FILENAME_MAX];
ValidateFile( expand_path( strcpy( path, *(++argv)), ".", pubdir ),
argc % 2 );
}
} /* main */